public class GenericInterfaceTest02 {
    public static void main(String[] args) {
        //创建对象时，指定泛型
        GenericInterfaceImp02<Integer> gen = new GenericInterfaceImp02<>();
        gen.method(123);
        GenericInterfaceImp02<Double> gen2 = new GenericInterfaceImp02<>();
        gen2.method(2.2);
    }
}
